<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/restricted/template.xhtml">

        <ui:define name="title">MeteoCal - Settings</ui:define>
        <ui:define name="titlePag">Settings</ui:define>
        <ui:define name="content">
        <div class="event">
            <div class="eventoForm">
            <h:form>
                <h:outputText styleClass="privateCalendar" value="Your personal calendar has been set to #{loginBean.privacy}"/>
                <h:commandButton styleClass="logoutButton" value="Change" style="float:right" action="#{loginBean.changeCalendarPrivacy()}"/><br/><br/><br/>
            </h:form>
        <h:form>    
            <h:outputText styleClass="privateCalendar" value="Do you really want to leave MeteoCal?"/>
            <h:commandButton styleClass="logoutButton" style="float:right" value="Logout"  action="#{loginBean.logout()}"/>
        </h:form>
            </div>
        </div>
        </ui:define>

    </ui:composition>
</html>
